﻿using System;
using System.IO;

using SBPweb.Modules.Modularity;

namespace SBPweb.MediaCenter.Modules.Downloader.Torrent.WPF.Controllers
{

    public class DownloaderService : TorrentServiceBase
    {

        #region Constructor logic

        public DownloaderService(IModule parentModule)
            : base(parentModule)
        {
            //string documentsRoot = string.Format("{0}\\My Torrents", Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));
            //string tempFolder = string.Format("{0}\\{1}\\", documentsRoot, Properties.Settings.Default.TemporaryFolder);
            //if (!Directory.Exists(tempFolder))
            //{
            //    Directory.CreateDirectory(tempFolder);
            //}
            //base.InitializeSettings(tempFolder, 60690, 5, 10, -1, -1, true);
            //ITorrentFile itf = base.OpenAndGet(new Uri(string.Format("{0}\\x.torrent", documentsRoot), UriKind.Absolute)) as ITorrentFile;
            //base.Start(itf);
        }

        #endregion

    }

}